﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AiXiu.Model;

namespace AiXiu.IBLL
{
    /// <summary>
    /// 用户信息处理接口
    /// </summary>
    public interface IUserManager
    {
        /// <summary>
        /// 根据用户Id获取到用户的信息
        /// </summary>
        /// <param name="Id">用户Id</param>
        /// <returns>用户Id对应的用户信息</returns>
        TBUsers getUserById(int Id);

        /// <summary>
        /// 修改用户信息
        /// </summary>
        /// <param name="newUser">用户提交的更新数据</param>
        /// <returns>更新结果</returns>
        OperResult editUserInfo(TBUsers newUser);

        /// <summary>
        /// 修改头像
        /// </summary>
        /// <param name="newUser">用户上传的新图像的路径</param>
        /// <returns></returns>
        OperResult editAvatar(TBUsers newUser);
    }
}
